<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>模拟考试</title>
	<link rel="stylesheet" href="resource/exam/exam.css" type="text/css" />
	<style type="text/css">
		/*打印时，背景为白色*/
		@media print {
			body {
				font-size: 12px;
				background-color: #fff;
			}
			.div_topic {
				padding: 5px;
				border: #000 dashed;
				border-width: 0 0 1px 0;
				background-color: #fff;
			}
			.div_topic h4 {
				font-size: 14px;
				color: #000;
			}
			.div_topic h4 span {
				display: none
			}
			#answer_last {
				background-color: #eee;
				border: 1px dashed #333;
				color: #000000;
				display: block;
				position: static;
				width: auto;
				height: auto;
			}
		}
	</style>
	<script src="resource/exam/jquery.js" type="text/javascript"></script>
	<script src="resource/exam/function.js" type="text/javascript"></script>
	<script>
	
	var arr_topic = [
					<%out.print((String)request.getAttribute("topics"));%>
	            ];
	
		$(document).ready(function() {
			topic_num = <%out.print((String)request.getAttribute("total"));%>;
	
			get_topic(arr_topic, topic_num);
			int();
		});
	</script>
</head>
	<div id="fixedLayer">
		<div>
			<p>
				<span id="topic_right"> <input name="show_answer" id="show_answer" type="button" value=" 答案 " onclick='$("#answer_last").toggle();' /> <input
					name="check_answer" id="check_answer" type="button" value=" 算分 " />
			</p>

		</div>
	</div>
	<br />
	<br />
	<br />
	<div id="topic_all"></div>
	<div id="answer_last"></div>
</body>
</html>